package com.mydemo.admin.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * 路由实体类
 * @author Last_Island
 * @version 1.0
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Router {

    /** 路由地址 **/
    private String path;

    /** 组件路径 **/
    private String component;

    /** 路由名称 **/
    private String name;

    /** 路由元信息 **/
    private Meta meta;

    /** 子路由 **/
    private List<Router> children;

    public Router() {
    }

    public Router(String path, String component, String name, Meta meta, List<Router> children) {
        this.path = path;
        this.component = component;
        this.name = name;
        this.meta = meta;
        this.children = children;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Meta getMeta() {
        return meta;
    }

    public void setMeta(Meta meta) {
        this.meta = meta;
    }

    public List<Router> getChildren() {
        return children;
    }

    public void setChildren(List<Router> children) {
        this.children = children;
    }
}
